package com.wpp.serializer;

/**
 * @author by wpp25
 * @Classname Serizlizer
 * @Description
 * @Date 2020/11/26 20:02
 */
public interface Serializer {

    byte[] serialize(Object object) throws Exception;

    <T> T deserialize(Class<T> clazz, byte[] bytes) throws Exception;
}
